package com.otr.ai.web;

import com.otr.ai.service.McpClientService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 */
@RestController
@RequestMapping("/mcp")
public class McpController {

  @Resource private McpClientService mcpClientService;

  @GetMapping("/chat")
  public String equals(@RequestParam String chatId, @RequestParam String message) {
    return mcpClientService.chat(chatId, message);
  }
}
